package com.zou.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zou.common.utils.PageUtils;
import com.zou.mall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lingjin.zou
 * @email leonard_zou@163.com
 * @date 2022-02-14 14:32:42
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    //批量删除
    void removeMenuByIds(List<Long> asList);

    //批量逻辑删除
    int removeBatchIdsLogic(List<Long> list);

    /**
     * 级联更新所有数据,包括其本身和其子类
     */
    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Catagories();



}

